package com.bluse.DesignModel.SingleInstanceDesignModel;


/**
 * @Describer  单例模式
 * @Author: bluse
 * @Date: 2019/2/25 13:42
 **/

public class SingleInstanceClass {


    public static  SingleInstanceClass  instance = new SingleInstanceClass();

    private SingleInstanceClass (){

    }
    public static   SingleInstanceClass getIsntance(){
        return  instance;
    }

    public  void sendMessage(){
        System.out.println("send a message to all");
    }




}
